caro Posted December 10, 2021 Share Posted December 10, 2021 Hi there I ran into an issue with TextPlugin: when using an ampersand some HTML character entities are not displayed. You can see in the demo that "&euro" is written but everything else gets parsed wrongly. Thank you for your help! See the Pen YzrGZaw by carosofialina (@carosofialina) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted December 10, 2021 Share Posted December 10, 2021 Welcome to the forums @caro Thanks for the demo. Please standby while we investigate. Link to comment Share on other sites More sharing options...
OSUblake Posted December 10, 2021 Share Posted December 10, 2021 In the meantime, can you just wrap your ampersands in a span? See the Pen KKXgydp by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
caro Posted December 10, 2021 Author Share Posted December 10, 2021 Thanks for the solution @OSUblake, unfortunately, this is not going to work for me. I'm working with React and I pass a string as parameter to the component which is animated. Link to comment Share on other sites More sharing options...
OSUblake Posted December 10, 2021 Share Posted December 10, 2021 Can you show what you're doing in React? Link to comment Share on other sites More sharing options...
GreenSock Posted December 12, 2021 Share Posted December 12, 2021 Here's an updated minified preview of the upcoming release which should fix that: https://assets.codepen.io/16327/TextPlugin3.min.js See the Pen MWEbKjO by GreenSock (@GreenSock) on CodePen Better? Link to comment Share on other sites More sharing options...
caro Posted December 13, 2021 Author Share Posted December 13, 2021 Thank you, way better! @GreenSock Also thank you for your help @OSUblake 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now