Jump to content

removing HTML code


webguync

Recommended Posts

He never said anything about stripping tags. He said "remove html". Which is what htmlentities( ) will do.

 

<span style="font-size:10px; font-weight:bold;">Hello <em>World</em></span>

 

is not html.

I think you'll find it is HTML but in its raw form. I think everyone else will agree with me that you're not actually removing anything at all. The OP should clarify.
Link to comment
https://forums.phpfreaks.com/topic/118843-removing-html-code/#findComment-612059
Share on other sites

I think you'll find it is HTML but in its raw form. I think everyone else will agree with me that you're not actually removing anything at all. The OP should clarify.

 

It's not HTML? How is it HTML in it's raw form? It's been turned into something that will be printed on screen instead of interpreted as HTML?

Link to comment
https://forums.phpfreaks.com/topic/118843-removing-html-code/#findComment-612064
Share on other sites

I think the point of the OPs post is to not allow people to post HTML tags to his/her script. I think we're deviating from the subject a bit. The facts of the matter are that the OP did not ask for the HTML to be shown in entity form,. but he DID ask for the HTML to be removed, which I think I have provided the code for.

Link to comment
https://forums.phpfreaks.com/topic/118843-removing-html-code/#findComment-612067
Share on other sites

I think the point of the OPs post is to not allow people to post HTML tags to his/her script. I think we're deviating from the subject a bit. The facts of the matter are that the OP did not ask for the HTML to be shown in entity form,. but he DID ask for the HTML to be removed, which I think I have provided the code for.

 

With htmlentities, they're not posting HTML tags. htmlentities( ) removes HTML.

Link to comment
https://forums.phpfreaks.com/topic/118843-removing-html-code/#findComment-612069
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.