easier to see safety of innerHTML use from one line
This commit is contained in:
parent
589b462f84
commit
dd204d95f1
@ -245,8 +245,8 @@ Linkify =
|
|||||||
regExp: /(http|www).*\.(gif|png|jpg|jpeg|bmp)$/
|
regExp: /(http|www).*\.(gif|png|jpg|jpeg|bmp)$/
|
||||||
style: 'border: 0; width: auto; height: auto;'
|
style: 'border: 0; width: auto; height: auto;'
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
el = $.el 'div',
|
el = $.el 'div'
|
||||||
innerHTML: '<a target="_blank"><img></a>'
|
el.innerHTML = '<a target="_blank"><img></a>'
|
||||||
el.firstChild.href = el.firstChild.firstChild.src = a.dataset.href
|
el.firstChild.href = el.firstChild.firstChild.src = a.dataset.href
|
||||||
el
|
el
|
||||||
,
|
,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user