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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -