var html = '<style>b {color: red;}</style>' +
' Yey, <b> No more, tags&</b>' +
'<img source="1.png" alt="smiley">';
is stripped down to Yey, No more, tags& smiley - but I will get the same result if set 'alt' to true!
so, if I want to strip down alt attribute, I have to remove include_attributes option at all, or use like this: include_attributes : { },
so abovementioned html text is correctly stripped to Yey, No more, tags&
I've installed this module with version: "0.1.1" using npm.
include_attributes option behaves in some strange way:
if I use the following options:
html text like
is stripped down to
Yey, No more, tags& smiley
- but I will get the same result if set'alt'
totrue
!so, if I want to strip down alt attribute, I have to remove
include_attributes
option at all, or use like this:include_attributes : { }
, so abovementioned html text is correctly stripped toYey, No more, tags&