Skip to content

🐛 BUG: Backslash in tag attribute value is escaped in Astro #56

Description

@debiru

What version of @astrojs/compiler-rs are you using?

7.0.2

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

This is the issue regarding the reopening of withastro/compiler#1091

If the following description is made in the astro file in src, the html file of the build result will look like the following.

.astro file in src directory

<input pattern="^example\.com$" />

.html file in dist directory

<input pattern="^example.com$" />

What's the expected result?

.html file in dist directory

<input pattern="^example\.com$" />

instead of

<input pattern="^example.com$" />

(The backslash is removed in the unexpected result)

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-tv8scu9a?file=src%2Fpages%2Findex.astro

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions