Forum

Thread tagged as: Question

Using Perch Replace With Tags

Hi

I was hoping to use replace="" to take out the paragraph tags <p> and </p> from a redactor textarea using

replace="<p>|,</p>|"

However, it's not working and I think it's because I'm using < and > it's confusing it and it's only outputting the rest of the perch tag.

Here my code if full

<perch:content id="li" type="textarea" editor="redactor" html="true" replace="<p>|,</p>|" label="bullet point text" size="xl" />

and this is what is being outputted

|,</p>|" label="bullet point text" size="xl" />

Many thanks

Glen Piggott

Glen Piggott 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, you can't do that. As you say, the tags are illegal.