FAQ Database Discussion Community


Ruby: Convert
to newline URI encode

ruby-on-rails,ruby,line-breaks,whatsapp,uriencoding
I want to share sometext on whatsapp so I'm converting html to text otherwise it displays all the tags. Currently I'm using strip_tags to remove tags but that also removes breaks from the text. How do I convert html to text and convert breaks to newline characters and url encode...

“%” is getting URI decoded while everyhting else not

javascript,uri,sapui5,openui5,uriencoding
I have a strange UI5 problem. I create a string from a control's binding context which looks like: Entity('Element%3AInfo%2CID') Just for info, it looks like this decoded: Entity('Element:Info,ID') However, I get this String from the following method chain: oItem.getBindingContext().getPath().substr(1) So, the whole (pretty basic) "navigate to" block looks like this:...