String attribute values in multiple lines, HTML

Yes that’s possible:
https://stackoverflow.com/a/38874964/3135511
The secret is to use tab‘s instead of space
As well as to use linebreaks

<a href="https://stackoverflow.com/questions/22831988/bla 
	bla bla 
	bla bla bla 
	bla bla 
	bla">....</a>

^- try out the code and hover over the ….
And look for the link – it should read just like
bla bla bla bla bla bla bla bla bla

Background:

  • A space in a string will be escaped to %20 and so stay in,
    +but white spaces as tab & line break will be discarded/filtered out.

    If you want them in a string write %09 for Tab and %0A%0D for some CR/LF windows line break. -> That are two bytes one
    Carrier Return char and some Line Feed char.

Leave a Comment