[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


Comments


You need to login to view comments.