Permalink
Browse files

Update to only unencode the <b> tags around the name.

  • Loading branch information...
1 parent 2b6b7da commit 025fa8bdc11569457cbca6b15fadec98447c039b @jwhitcraft jwhitcraft committed Feb 24, 2011
@@ -1,5 +1,5 @@
{assign var="value" value={{sugarvar key='value' string=true}} }
{php}
-$value = html_entity_decode($this->_tpl_vars['value']);
+$value = preg_replace("#&lt;(/)?b&gt;#", "<$1b>", $this->_tpl_vars['value']);
echo nl2br($value);
{/php}
@@ -1,6 +1,6 @@
{assign var="value" value={{sugarvar key='value' string=true}} }
{php}
-$value = html_entity_decode($this->_tpl_vars['value']);
+$value = preg_replace("#&lt;(/)?b&gt;#", "<$1b>", $this->_tpl_vars['value']);
echo nl2br($value);
{/php}
<br /><br />

0 comments on commit 025fa8b

Please sign in to comment.