Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mattesmohr
Copy link
Member

@mattesmohr mattesmohr commented Jan 25, 2025

The pull request refactors the rendering a bit — nothing major.

It also changes how the setting for the escaping is accessed. Previously, you had to access it like this:

app.htmlkit.security.autoEscaping = false

That felt like an overkill, so I replaced it with a feature flag:

app.htmlkit.features = [.escaping]

The escaping is still enabled by default. However, if you want to use Markdown, for example, make sure to include the escaping as well, when you overriding the feature set, e.g.:

app.htmlkit.features = [.escaping, .markdown]

@mattesmohr mattesmohr marked this pull request as ready for review April 6, 2025 18:34
@mattesmohr mattesmohr merged commit badff9e into main Apr 7, 2025
0 of 2 checks passed
@mattesmohr mattesmohr deleted the revise-the-rendering branch October 14, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant