From dd204d95f1ee263c988fc529f78a273f59fa1039 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 9 May 2014 02:46:16 -0700 Subject: [PATCH] easier to see safety of innerHTML use from one line --- src/Linkification/Linkify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 49af13b98..204ce9fa5 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -245,8 +245,8 @@ Linkify = regExp: /(http|www).*\.(gif|png|jpg|jpeg|bmp)$/ style: 'border: 0; width: auto; height: auto;' el: (a) -> - el = $.el 'div', - innerHTML: '' + el = $.el 'div' + el.innerHTML = '' el.firstChild.href = el.firstChild.firstChild.src = a.dataset.href el ,