How to Rewrite Plain text output not <HTML attribute>
com.day.cq.rewriter.pipeline.RequestRewriter or org.apache.sling.rewriter.Transformer helps to rewrite any html tag's attribute value that i am able to do it.
But I am trying to do rewrite plain text like {string.token) with any value.
for example :
Here is content in CRX when it would be rendered , {string.token} should be replaced with some dynamic value..... if i place that token as attribute in <p> i can do easily but i want that as plain text not as attribute of html tag. any thought?
<p> Hello world {string.token) , I am good<p>
Thanks Chandra