Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Videos inside pages #72

Merged
merged 2 commits into from
Dec 10, 2020
Merged

Support Videos inside pages #72

merged 2 commits into from
Dec 10, 2020

Conversation

mino181295
Copy link
Contributor

Motivation

In Docet before serving the current page, the HTML gets cleaned up with JSOUP.

Fix

Add a propery docet.enable.iframe (default false) to skip the iframe clean.
In the PDF render the iframes gets cleaned anyway.

Master issue: #71

@@ -285,12 +285,13 @@ String servePageIdForLanguageForPackage(final String packageName, final String p
case TYPE_HTML:
html.append(htmlDoc.body().getElementsByTag("div").first().html());
html.append(generateFooter(lang, packageName, pageId, faq));
res = DocetUtils.cleanPageText(html.toString());
res = DocetUtils.cleanPageText(html.toString(), docetConf.isEnableIframe());
System.out.println(" docetConf.isEnableIframe() === " + docetConf.isEnableIframe() + "\ncleaned page > " + res);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop debuf

@mino181295 mino181295 requested a review from eolivelli December 10, 2020 08:10
@eolivelli eolivelli merged commit ec61201 into master Dec 10, 2020
@eolivelli eolivelli deleted the feature/enable-iframe branch December 10, 2020 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants