8000 Revise the rendering by mattesmohr · Pull Request #168 · vapor-community/HTMLKit · GitHub
[go: up one dir, main page]

Skip to content

Revise the rendering - #168

Merged
mattesmohr merged 6 commits into
mainfrom
revise-the-rendering
Apr 7, 2025
Merged

mattesmohr merged 6 commits into
mainfrom
revise-the-rendering

Conversation

@mattesmohr
@mattesmohr mattesmohr commented Jan 25, 2025 •
Copy link
Copy Markdown
Member

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
@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

0