ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Remove HTML elements from json text

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Otto Tasnadi
Remove HTML elements from json text
on Jan 28, 2020 at 12:45:32 pm
Last Edited By Otto Tasnadi on Jan 28, 2020 at 1:55:22 pm

I have a json what sends me information to highlight texts between < em > and < / em > html elements. I should hide the marks and highlight the text between the marks.

I found this code snippet over here: https://forums.creativecow.net/thread/227/36482#38105

But I can't figure it out how to modify it to work with my case.

Can anybody help me with this?

It seams the isue is with the / sign from the < / em >


Return to posts index

Andrei Popa
Re: Remove HTML elements from json text
on Jan 28, 2020 at 2:12:50 pm

Maybe you need to use the escape character before /, like this: "<\/em>"

Andrei
My Envato portfolio.


Return to posts index

Otto Tasnadi
Re: Remove HTML elements from json text
on Jan 28, 2020 at 2:16:50 pm

Thanks, it works like magic :)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]