textillate icon indicating copy to clipboard operation
textillate copied to clipboard

<br> and <br /> break the parsing.

Open ghost opened this issue 10 years ago • 3 comments

Hi, If I make my markup as so:

<h2 class="mejor">Websites are more than just pages.</h2>
<h2 class="mejor">Let us help you bring yours to life.</h2>

With this initialization method:

$('.mejor').textillate({ in: { effect: 'rollIn' } });

The effect is as expected:

However, if I insert a break into the h2 element, like so:

<h2 class="mejor">Websites are more than just pages. <br>
Let us help you bring yours to life.</h2>

It breaks the parsing, resulting in this:

Since the underlying technology can handle these <br> elements, I thought you should know. Otherwise great tool! Thanks.

ghost avatar Dec 13 '14 05:12 ghost

Currently textillate doesn't support html inside the text. However I do think it's a valuable feature so I'll be looking at ways to support it in the future.

jschr avatar Dec 14 '14 18:12 jschr

Did this ever get added? I've just tried
in my HTML but it showed it as
rather than breaking the line.

sparkyuk2104 avatar May 23 '16 11:05 sparkyuk2104

Hello @jschr,

any update ?

fas3r avatar Jan 19 '18 18:01 fas3r