
zick
User
Nov 28, 2011, 3:26 PM
Post #4 of 7
(338 views)
Shortcut
|
|
Re: [Jason] displaying content without images
[In reply to]
|
Can't Post
|
|
Hi, You could use the php function strip_tags() to remove all the HTML tags from the content field: <?php if ($record['content']): ?> <?php echo strip_tags($record['content']); ?> <?php endif ?> Hope this helps. Jason, is there by chance another way to strip out photos uploaded in the content wysiwyg without stripping out HTML tags? I need to remove photos uploaded to the content, but retain HTML tags in my content for links to other websites, and such. Thanks, Zick
|