Fixed up issue where closing tags for anchor links were not properly ended causing all following text to be swallowed up in the link text.

This commit is contained in:
perroned 2014-08-21 07:12:38 -07:00
parent dd9267fab0
commit f0738dda62

View File

@ -187,7 +187,7 @@ Template.message.helpers
sanitizeAndFormat: (str) -> sanitizeAndFormat: (str) ->
# First, replace replace all tags with the ascii equivalent (excluding those involved in anchor tags) # First, replace replace all tags with the ascii equivalent (excluding those involved in anchor tags)
res = str.replace(/&/g, '&amp;').replace(/<(?![au\/])/g, '&lt;').replace(/([^au])>/g, '$1&gt;').replace(/([^=])"(?!>)/g, '$1&quot;'); res = str.replace(/&/g, '&amp;').replace(/<(?![au\/])/g, '&lt;').replace(/\/([^au])>/g, '$1&gt;').replace(/([^=])"(?!>)/g, '$1&quot;');
res = Template.message.toClickable res res = Template.message.toClickable res
res = Template.message.activateBreakLines res res = Template.message.activateBreakLines res