Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Strip_tag Php
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Marcel" data-source="post: 406931" data-attributes="member: 61326"><p>Hey,</p><p>So I've been working on a new project not going to get into it or anything.</p><p>This is the problem, I want to remove HTML code from some database entry.</p><p>[PHP] <?php echo (strip_tags($p_item['news'])); ?></p><p>[/PHP]</p><p>For some reason that isn't working, what happens is the text is still displayed with HTML tags.</p><p>I don't know if the code is incorrect or if I'm missing anything, would be great if someone can help. <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Marcel, post: 406931, member: 61326"] Hey, So I've been working on a new project not going to get into it or anything. This is the problem, I want to remove HTML code from some database entry. [PHP] <?php echo (strip_tags($p_item['news'])); ?> [/PHP] For some reason that isn't working, what happens is the text is still displayed with HTML tags. I don't know if the code is incorrect or if I'm missing anything, would be great if someone can help. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Strip_tag Php
Top