Jump to content
Search Community

Bug: <br> turns into {{LT}}br> when using splittext

pakl test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello pakl,

 

This doesn't look like it is a GSAP bug.. In the SplitText Docs it states:
:

NOTES / LIMITATIONS
- SplitText only recognizes raw text and <br> tags, not child elements like <strong> or <em> elements.

:

Looks like you are not using a real break tag <br> .. but using the HTML entity for greater than, less than sign and wrapping it around br .. <br> .. When you do that it is not a real HTML <br> tag. When you write greater or less than as HTML entities, than they will not be treated as a <br> HTML tag within an HTML document.

 

Is there any reason why you are not just writing the break tag like <br> instead of using a HTML entity?

 

Why not use the HTML break tag <br> instead of the HTML entity for greater than and less than sign with br?

 

You can see split text work with a real <br> tag:

See the Pen amvAy by jonathan (@jonathan) on CodePen

 

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...