Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-05 10:19:02

infectiousworship
Member
From: Gosport, UK
Registered: 2006-07-05
Posts: 10
Website

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

#3 2006-07-05 14:36:48

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#4 2006-07-05 14:57:14

infectiousworship
Member
From: Gosport, UK
Registered: 2006-07-05
Posts: 10
Website

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

Board footer

Powered by FluxBB