{strip}: how to avoid unintended whitespace removal?

laborer75

New Member
\[code\]{strip}<div class="x">{/strip}\[/code\]becomes\[code\]<divclass="x">\[/code\]And that is not what anyone would want.So, the question: is there any way to avod this? Imagined approaches:
  • replace new lines by spaces, using parameters or other smarty-functions
  • add protected spaces that are not stripped/trimed
This topic on their forum doesn't have a solution, (other than - add your own custom tag). Also, please don't offer solutions in raw PHP or any other languages / frameworks.
 
Top