Closed makma closed 4 years ago
@Enngage, unfortunately, @huluvu21 found another use case, that does not work 😢
When you place HTML that in top tag contains HTML attributes, they are striped in the output. I have provided a showcase: https://github.com/Simply007/resolve-url-as-html
If you want to keep it in separate issue - feel free to do so.
There is a screenshot of the actual code (context.item
is set since the code is using gatsby source plugin):
Ignore the arrow - both
href
anddownload
attributes are deleted from output
Thank you @Simply007 . I've released a fix in 9.1.1
(https://github.com/Kentico/kontent-delivery-sdk-js/blob/master/CHANGELOG.md#911-2020-04-02)
The only difference is that both browser parser & parse5 automatically change the download
attribute to download=""
which is however equivalent so it should be ok.
Brief bug description
UrlSlugResolver does not resolve links with
html
in Node environmentRepro steps
npm i
npm start
Expected behavior
Test environment
Additional context
Hint: https://github.com/Kentico/kontent-delivery-sdk-js/blob/master/lib/parser/adapters/parse5-rich-text.parser.ts