[smarty] remove p tag from a string

/ Published in: Smarty
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. {$text|regex_replace:"/(<p>|<p [^>]*>|<\\/p>)/":""}

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.