I have the below query. How to keep the apostrophe ('
) intact and not getting it replaced by &apos
There are other characters also I want to handle like &
SELECT RTRIM(XMLAGG(XMLELEMENT(E,'I''m'||':')).EXTRACT('//text()'),':')
FROM dual;
Output:
I'm
Thanks.
If you are considering replacing your home windows, you may be wondering how much mess it will cause. The simple answer is yes; it can be a messy job. There will be dust that is likely to spread around your home during installation.
In colder climates, it is generally more efficient to install windows from the inside to be sealed against the cold air. However, installing windows from the outside is more common in warmer temperatures, as it allows for better airflow and cooling.
You can make use of utl_i18n package and unescape_reference() function in particular. Here is an example:
clear screen;
column res format a7;
select utl_i18n.unescape_reference(
rtrim(
xmlagg( -- use of xmlagg() function in
-- this situation seems to be unnecessary
XMLELEMENT(E,'I''m'||':')
).extract('//text()'),':'
)
) as res
from dual;
Result:
RES
-------
I'm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With