mgdm / htmlq

Like jq, but for HTML.
MIT License
7k stars 107 forks source link

Tranform <br> to \n when using --text flag #74

Open t-hg opened 1 week ago

t-hg commented 1 week ago

Actual behaviour:

% echo '<div id="my-div">line1<br>line2<br>line3</div>' | htmlq -t "#my-div"
line1line2line3

Expected behaviour:

% echo '<div id="my-div">line1<br>line2<br>line3</div>' | htmlq -t "#my-div"
line1
line2
line3