Feat: Optionally extract raw html instead of parse5 serialization#42
Feat: Optionally extract raw html instead of parse5 serialization#42vbraun wants to merge 1 commit into
Conversation
|
Can you go a bit more into detail on the problem your change addresses? Is this just about HTML entities (similar to #36) or do you have other issues with the extracted contents? |
|
Yes, its about HTML entities, that is, roundtripping through parse5 loses information. In particular, the angular-gettext-cli extractor doesn't do that and Now one might argue that this the correct way of doing things since the DOM does that as well, and you are going to match
Slightly related question: getElementContent has some special handling for |
This adds a
rawHtmloption to extract the actual source html instead of the parse5 roundtripped version; Not sure if its a good idea but I'm trying to replace a gettext extractor that does just this.Documentation and lint needs fixing, but maybe its not a good idea to start with? ;-)