HTML text displayed as Image
Posted: Mon Oct 09, 2017 11:25 am
Hi,
We have a field in application, which accepts text from User. User has the ability to input Rich text in it. Issue arises when the report is exported to pdf format. The value of this text appears blurred and comes out as an an image.
Currently we are using following code to convert this into plain text but then the formatting is lost in this case:
REPLACE(REPLACE(TRIM( REGEXP_REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(COMMENT,CHAR(9), " "),'<p','</P'),'<P','</P'),'</p>','</P>'),'</P>',(char(10))),'<[^>]*>','')),concat('&', 'lt;'),'<'),concat('&', 'gt;'),'>')
Is there any workaround this?
We have a field in application, which accepts text from User. User has the ability to input Rich text in it. Issue arises when the report is exported to pdf format. The value of this text appears blurred and comes out as an an image.
Currently we are using following code to convert this into plain text but then the formatting is lost in this case:
REPLACE(REPLACE(TRIM( REGEXP_REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(COMMENT,CHAR(9), " "),'<p','</P'),'<P','</P'),'</p>','</P>'),'</P>',(char(10))),'<[^>]*>','')),concat('&', 'lt;'),'<'),concat('&', 'gt;'),'>')
Is there any workaround this?