[Qt-jambi-interest] QTextEdit HTML overhead

Gunnar Sletta gunnar at trolltech.com
Thu Nov 6 07:30:52 CET 2008


> is there a comfortable way to remove this default HTML overhead from  
> the
> returns of QTextEdits text() function?
> I want to get the HTML which the user generates in the QTextEdit,  
> but I
> don't want the pre- and suffix
> "<html><head><style ... </html>"

Hi,

I don't know of a default way to strip some HTML and keep the rest,  
no. The easiest is probably to match it to a regular expression and  
extract the middle content, or just parse it away with some string  
magic.

best regards,
Gunnar



More information about the Qt-jambi-interest mailing list