Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: Only sanitize the result string when replacing variables #648

Merged
merged 1 commit into from
Sep 24, 2023

Commits on Aug 1, 2023

  1. fix: Only sanitize the built string

    There is no need to sanitize the replacement values as it is sufficient to sanitize the result.
    1. This will improve the performance if multiple placeholders are used.
    2. This allows this: `See {linkstart}documentation{linkend}` with `{ linkstart: '<a ...>', linkend: '</a>' }` while the string is still sanitized.
    
    Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
    susnux authored and skjnldsv committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    586c3b2 View commit details
    Browse the repository at this point in the history