add html content
Posted: Wed Feb 27, 2013 3:48 am
I have a tbl row with a single row containing a place holder I want to replace this place holder with multi line string and this string is html.
To replace the place holder in the tbl I use this
My question is how to convert html text to a Paragraph.Please advice.
To replace the place holder in the tbl I use this
- Code: Select all
Tbl tempTable = getTemplateTable(tables, getKey(placeholder));
if(tempTable==null)return;
List<Object> tcs = getAllElementFromObject(tempTable, Tc.class);
Tc tc=(Tc)tcs.get(0);
List<Object> ps = getAllElementFromObject(tc, P.class);
tc.getContent().remove(ps.get(0));
for(Object object :htmlStrings){
tc.getContent().add(object);
}
My question is how to convert html text to a Paragraph.Please advice.