Skip to content

Change tag rendering to support escaped characters in value strings again#103

Open
pieceofsoul wants to merge 2 commits into
dave:masterfrom
pieceofsoul:fix-tag-rendering
Open

Change tag rendering to support escaped characters in value strings again#103
pieceofsoul wants to merge 2 commits into
dave:masterfrom
pieceofsoul:fix-tag-rendering

Conversation

@pieceofsoul
Copy link
Copy Markdown

In a previous version it was possible to provide a string as tag value which contained escaped characters.

50f4f83 changed the tag rendering to use %q instead of %s - which changed the behaviour how escaped strings are processed and rendered.

This PR proposes to change this back, because there are cases which require the processing of escaped strings. E.g. This is required to create appropriate regexp tags for using github.com/asaskevich/govalidator

%q instead of %s prevents correct render of escaped character sequences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant