Jump to content

[SOLVED] Removing HTML tags


laPistola

Recommended Posts

Im trying to remove HTML tags from a varable

 

i tryed htmentities below

echo substr(htmlentities($row_newsRS['article']),0,700);

but all it did was show up the html on the page

 

ie,

p><span style="font-size:12px;">text here</span></p>

would be shown on the page

i also just now tried

echo substr(htmlentities($row_newsRS['article'],ENT_QUOTES,"utf-8"),0,700);

but same results i shown the HTML on the browser page??

 

Link to comment
https://forums.phpfreaks.com/topic/136928-solved-removing-html-tags/
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.