[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 44880] would like to be able to strip tags from html messages
From:       Thomas Fischer <fischer () unix-ag ! uni-kl ! de>
Date:       2011-08-08 12:16:19
Message-ID: E1QqOkl-0005I8-Jv () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=44880





--- Comment #16 from Thomas Fischer <fischer unix-ag uni-kl de>  2011-08-08 12:16:18 ---
(In reply to comment #15)
> Is there anyway this could be made using QtWebKit?
To my knowledge no, as WebKit is made for graphical presentation of HTML code
and you still would need some translation step. Using lynx would avoid
re-inventing the wheel.

> If not then the program used should be configurable as some might have another
> text mode browser installed.
That would be possible. My patch so far is just a proof-of-concept and can be
expanded. My idea would be to keep it automagically if possible, i.e
automatically falling back to e.g. links2 if lynx is not available.

> And what is the real usecase for this?
> HTML display only uses html elements present in the actual mail and executes no
> scripts or does any access to the internet without being told so by the user.
It is not only about malicious HTML code, but also about really badly formatted
HTML code such as spam, mails from people with bad taste regarding fonts and
colors, purists who despise any formatting at all, but like to keep a basic
text structure etc.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic