Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Stop comments from being wrapped in the <p> tag?
How can I stop user’s comments from being wrapped in the <p> tag? Is there a plug-in I can use to strip all html, or have I missed some blindingly obvious preference I need to change?
Thanks for all help received.
Matt
Offline
#2 2006-07-05 14:35:52
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Stop comments from being wrapped in the <p> tag?
You can set ‘Present comments as a numbered list?’ in admin > preferences to ‘yes’, but that will – as you might have guessed – just replace the <p> tags with list tags.
Or you can have a look at etz_striptags.
Offline
Re: Stop comments from being wrapped in the <p> tag?
A comment is not wraped in a p-tag, a paragraph is – because a comment can contain multiple paragraphs. This is done via a simplified form of textile. Why do you prefer to break your markup? Maybe your actual objective can be reached in a different way?
Offline
Re: Stop comments from being wrapped in the <p> tag?
Thanks for both replies – they both helped. The striptag is very useful. I think, like Sencer said, I need to re-evaluate what I’m trying to acheive.
Thanks.
Offline