threedaymonk / htmlbeautifier

A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
MIT License
325 stars 59 forks source link

`>` in attribute breaks formatting #78

Open andyw8 opened 5 months ago

andyw8 commented 5 months ago
<div foo="a>b"
     bar="1">

is incorrectly formatted to

<div foo="a>b"
  bar="1">

(Without the > it works correctly).

This causes problems for Hotwire/Stimulus since it uses notation such as:

<button data-action="click->hello#greet">Greet</button>