Hi,
We have a clob field which contains text with html formatting tags. Since the tags are not recognised by our reporting application (Crystal Reports), we use a function to convert the tags to a set that are recognised. e.g.
The html tag '<strong>' is not recognised, so we convert it to '<b>', using the function:
This will turn this...
...into this
i.e., Unfortunately, whilst the HTML tags are then recognised, this has the side effect of making all of the text lower case.
Does anyone know why this might be?
Thanks, Gavin
We have a clob field which contains text with html formatting tags. Since the tags are not recognised by our reporting application (Crystal Reports), we use a function to convert the tags to a set that are recognised. e.g.
The html tag '<strong>' is not recognised, so we convert it to '<b>', using the function:
Code:
CREATE OR REPLACE FUNCTION Handle_Clob (p_string IN clob)
RETURN clob
IS
BEGIN
RETURN replace(replace(replace(replace(replace(p_string, '<p>', '<p><p>'),'</p>','</p></p>' ),'strong>','b>'),'em>','i>'), 'sub>', 'small>');
END;
/
This will turn this...
Code:
<P><STRONG>B.3.11 Stock Solution Preparation</STRONG></P>
...into this
Code:
<p><p><b>b.3.11 stock solution preparation</b></p></p>
i.e., Unfortunately, whilst the HTML tags are then recognised, this has the side effect of making all of the text lower case.
Does anyone know why this might be?
Thanks, Gavin