Forum Discussion
3 Replies
- destrukStreaming StarIf you can run your html string through PHP it's real easy --
https://www.w3schools.com/php/func_stri ... p_tags.asp - destrukStreaming StarOne issue with doing that is that it will match anything between less than and greater than signs - not necessarily a valid html tag.
<gasp>
But for the cheap man's solution it works. - Tyler_SmithStreaming Star
"destruk" wrote:
One issue with doing that is that it will match anything between less than and greater than signs - not necessarily a valid html tag.
<gasp>
But for the cheap man's solution it works.
If the source is valid HTML, the greater than and less than signs would be < or < HTML entities, not < or >.
Your solution is either recommending the developer proxy the html through PHP to strip the HTML or modify the original output, which I doubt they would prefer.