문제

Hi I am working on an app that adds some features to etherpad lite. I want to add some html elements to etherpad pad so i need to unescape the html and display it on the pad. I was just curious to know if it is possible. Just for the record I am using ruby api in my application

도움이 되었습니까?

해결책

I'm not entirely sure which way it is you want to go, but to convert to from escaped characters in JavaScript you use either decodeURIComponent() or encodeURIComponent().

That would take hey you and encode to hey%20you or decode the other way.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top