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:
parent
dd9267fab0
commit
f0738dda62
@ -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, '&').replace(/<(?![au\/])/g, '<').replace(/([^au])>/g, '$1>').replace(/([^=])"(?!>)/g, '$1"');
|
res = str.replace(/&/g, '&').replace(/<(?![au\/])/g, '<').replace(/\/([^au])>/g, '$1>').replace(/([^=])"(?!>)/g, '$1"');
|
||||||
|
|
||||||
res = Template.message.toClickable res
|
res = Template.message.toClickable res
|
||||||
res = Template.message.activateBreakLines res
|
res = Template.message.activateBreakLines res
|
||||||
|
Loading…
Reference in New Issue
Block a user