Created
August 21, 2011 05:34
-
-
Save DeskSupport/1160185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% capture replace1 %}{{ email.new_html|replace:'[code]',' <pre style="font-family:monospace; padding: 8px">'}}{% endcapture %} | |
{% capture replace2 %}{{ replace1|replace:'[/code]','</pre><p>' }}{% endcapture %} | |
{% capture replace3 %}{{ replace2|replace:'[i]','<i>'}}{% endcapture %} | |
{% capture replace4 %}{{ replace3|replace:'[/i]','</i>'}}{% endcapture %} | |
{% capture replace5 %}{{ replace4|replace:'[b]','<strong>'}}{% endcapture %} | |
{% capture replace6 %}{{ replace5|replace:'[/b]','</strong>'}}{% endcapture %} | |
{% capture replace7 %}{{ replace6|replace:'[red]','<font color="red">'}}{% endcapture %} | |
{% capture replace8 %}{{ replace7|replace:'[/red]','</font>'}}{% endcapture %} | |
{% capture replace9 %}{{ replace8|replace:'[blue]','<font color="blue">'}}{% endcapture %} | |
{% capture replace10 %}{{ replace9|replace:'[/blue]','</font>'}}{% endcapture %} | |
{% capture replace11 %}{{ replace10|replace:'[grey]','<font color="grey">'}}{% endcapture %} | |
{% capture replace12 %}{{ replace11|replace:'[/grey]','</font>'}}{% endcapture %} | |
{% capture replace13 %}{{ replace12|replace:'[link]http','<a href="http'}}{% endcapture %} | |
{% capture replace14 %}{{ replace13|replace:'[link]','<a href="http://'}}{% endcapture %} | |
{% capture replace15 %}{{ replace14|replace:'[linktitle]','">'}}{% endcapture %} | |
{% capture replace16 %}{{ replace15|replace:'[/link]','</a>'}}{% endcapture %} | |
{{replace16}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment