DNG RPE Div elements and formatting
![](http://jazz.net/_images/myphoto/f14fabf0c9b930631335d80fe1ef8bcc.jpg)
Hi, has anyone got any more detailed advice on how to format the output of RPE generated docs using DNG RichText>Div elements as souce?
In some DNG modules, we have imported from a word document, then subsequently modified the text content, but the modification seem to create "span" elements in DNG which end up presenting differently when published. e.g.:
<p dir="ltr"id="_1594296656529">
Here is some text from DNG
<span style="font-family:Arial,Helvetica,sans-serif; font-size:10pt">with an annoyingly formatted bit </span>
</p>
There are a couple things I'd like to be able to do:
1: Remove font styles
2: Remove font size
3: Keep other elements and Align embedded tables and images centred
I've read the link below and whilst it shows how I can 'handle' the Div in a script expression, it's not clear to me how I can go about removing or modifying the Div content.
Accepted answer
One other answer
![](http://jazz.net/_images/myphoto/f14fabf0c9b930631335d80fe1ef8bcc.jpg)
Hello,
Quick question on this thread: did the answer address ALL the 3 questions:
1: Remove font styles
2: Remove font size
3: Keep other elements and Align embedded tables and images centered
I'm interested because I'm using the same regular expression, but ALL the elements such as alignments, lists, tables are cleaned up and I'm struggling to find out a solution to have JUST the font - style cleaned up so that I can assign / setup it through the Paragraph Properties in RPE.