-
- 1,131 Posts
What news snippet are you using and where did you get it? I’d have to take a look at the code. Are you basically wanting to take out the "Click here to continue" link? Or are you trying to put the text on a new line rather than at the end of the paragraph? Not quite sure what you’re asking...but I’ll be glad to help once I look at the snippet code.
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
-
- 680 Posts
Yes you can give a list of tags that you don’t want stripped as the second argument to the strip_tags function. Such as...
substr(strip_tags($resource[$x][’content’],’<p><strong><em>’), 0, $lentoshow);
However, this could cause problems with the rest of your page. For instance, if you cut off in the middle of a <b>, <strong>, <em> the rest of you page may end up bolded or italicized.
-
- 3,250 Posts
That is what I am trying to avoid.