mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
allow some table styling
This commit is contained in:
@@ -33,6 +33,10 @@ public class FeedUtils {
|
|||||||
whitelist.addTags("iframe");
|
whitelist.addTags("iframe");
|
||||||
whitelist.addAttributes("iframe", "src", "height", "width",
|
whitelist.addAttributes("iframe", "src", "height", "width",
|
||||||
"allowfullscreen", "frameborder");
|
"allowfullscreen", "frameborder");
|
||||||
|
|
||||||
|
whitelist.addAttributes("table", "border", "bordercolor");
|
||||||
|
whitelist.addAttributes("th", "border", "bordercolor");
|
||||||
|
whitelist.addAttributes("td", "border", "bordercolor");
|
||||||
|
|
||||||
content = Jsoup.clean(content, baseUri, whitelist,
|
content = Jsoup.clean(content, baseUri, whitelist,
|
||||||
new OutputSettings().escapeMode(EscapeMode.base)
|
new OutputSettings().escapeMode(EscapeMode.base)
|
||||||
|
|||||||
Reference in New Issue
Block a user