html-purify icon indicating copy to clipboard operation
html-purify copied to clipboard

embeded images can not show after purifying

Open xifengfang opened this issue 8 years ago • 0 comments

"x" is added to the src data part.

For example

before purifying: <img src="data:image/png;base64,iVB<MoreBase64SringHere>" > after purifying: <img src="x-data:image/png;base64,iVB<MoreBase64SringHere>" >

"x-data:image/png" is an invalid value for image src. It turns out the images can not show at all in any browser.

Is there any workaround or quick fix for this?

xifengfang avatar Mar 10 '16 19:03 xifengfang