javascript - How can I remove visible HTML syntax from text in a browser? -
we pulling in editorial review amazon api, , includes inline html syntax should not displayed.
how can remove html syntax displayed viewer? potentially javascript?
you can see example of if @ review after click 'view details' on bulb on bulbtrip.com.
thanks! adam
try using this
var actualstring = "<span>some text</span> other text <br/> sfahgukasfg <p > "; removedhtmltagsstring = actualstring .replace(/<[^>]+>/ig,""); alert(removedhtmltagsstring );
Comments
Post a Comment