Hi,

I need to use a FILTER that behaves like html_para, except that it doesn't 
add the initial <p> tag.

ie

[% FILTER html_para_new %]
The cat sat on the mat.
Mary had a little lamb.
[% END %]

output:
The cat sat on the mat.
</p>
<p>
Mary had a little lamb.
</p>
<p>

(I'm not too concerned about the trailing <p> at this stage.)

I tried using replace('\n{2,}, '</p><p>'), but for blocks of text pulled 
from the database, carriage returns aren't replaced. htmp_para works 
exactly as expected though. I assume there is something wrong with my reg 
exp in the replace. The thing is what?

Andrew

Reply via email to