Posted By

iwiz on 01/07/13


Tagged


Versions (?)

[smarty] remove p tag from a string


 / Published in: Smarty
 

This will replace p tag and all attributes strings with an empty string.

  1. {$text|regex_replace:"/(<p>|<p [^>]*>|<\\/p>)/":""}

Report this snippet  

You need to login to post a comment.