Browse Source
When `--sanitize` is active (the default), tags have been "sanitized" as they were encountered. Unfortunately, not all tags get "encountered" by the sanitation section. Pre-existing "block" tags in the input are squirreled away to prevent unintentional formatting "accidents". Such tags were evading the sanitation engineer. Instead of "sterlizing" when the tags are encountered during normal formatting processing, perform full sanitation sterlization (provided `--sanitize` is active) on the final, fully-formatted output. By waiting until the end, all tags will be fully sterilized (even those produced by Markdown.pl itself), no tag shall escape. If `--validate-xml` has been requested (it's off by default), that will happen _after_ full sanitation. Signed-off-by: Kyle J. McKay <mackyle@gmail.com>master
Kyle J. McKay
5 years ago
1 changed files with 55 additions and 7 deletions
Loading…
Reference in new issue