jackr1909 Posted January 30, 2012 Share Posted January 30, 2012 Hi everyone, i have a user posting system and i want to echo data so that any HTML tags of any kind will be regarded as plaintext, so that it will have no effect on the webpage, thanks Jack Quote Link to comment https://forums.phpfreaks.com/topic/256027-php-echo-html-as-plaintext/ Share on other sites More sharing options...
darkfreaks Posted January 30, 2012 Share Posted January 30, 2012 http://blog.sqlauthority.com/2007/06/16/sql-server-udf-user-defined-function-to-strip-html-parse-html-no-regular-expression/ Quote Link to comment https://forums.phpfreaks.com/topic/256027-php-echo-html-as-plaintext/#findComment-1312487 Share on other sites More sharing options...
spiderwell Posted January 30, 2012 Share Posted January 30, 2012 or php's strip_tags() Quote Link to comment https://forums.phpfreaks.com/topic/256027-php-echo-html-as-plaintext/#findComment-1312500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.