Skip to content

hast-util-to-html href attribute handling #114

Answered by wooorm
Nickolai-developer asked this question in Q&A
Discussion options

You must be logged in to vote

it’s not a bug here. Rather, without it, this project would be completely broken.

It’s a bug with amazon. Raise it with them.

  1. Option to disable hex-substitutions in attributes

That would be completely broken.

  1. The use of escape on href's value in serializeAttribute

This is not a sentence that follows “I want either”? I don‘t understand what you want.

  1. To clarify, if I'm missing something, and it is in fact possible to get links without & in output html

There are many options that affect character references, as explained in the readme: https://github.com/syntax-tree/hast-util-to-html. Perhaps the characterReferences option? Perhaps allowParseErrors might be of interest too?

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
10 replies
@wooorm
Comment options

@cheapsteak
Comment options

@wooorm
Comment options

@cheapsteak
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
2 replies
@adammcodes
Comment options

@wooorm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants