for json response actiontext body is converted with .to_html
but the problem with that is the attachment is inside <action-text-attachment>
tag
and I find it hard to render it into my mobile app since the library only supports a plain html tag, such as a
or href
thats why I want to change it all into a href
my questions is
what is the best way to change this tag into a clickable href?
I’m thinking about using nokogiri to find and replace
anyone have better idea?