Class YoutubeDescriptionHelper
- java.lang.Object
-
- org.schabi.newpipe.extractor.services.youtube.YoutubeDescriptionHelper
-
public final class YoutubeDescriptionHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringattributedDescriptionToHtml(com.grack.nanojson.JsonObject attributedDescription)Parse a video description in the new "attributed" format, which contains the entire visible plaintext (content) and an array ofcommandRunsandstyleRuns.
-
-
-
Method Detail
-
attributedDescriptionToHtml
@Nullable public static java.lang.String attributedDescriptionToHtml(@Nullable com.grack.nanojson.JsonObject attributedDescription)Parse a video description in the new "attributed" format, which contains the entire visible plaintext (content) and an array ofcommandRunsandstyleRuns. Returns the formatted content in HTML format, and escapes the text to make sure there are no XSS attacks.commandRunsinclude the links and their range in the text, whilestyleRunsinclude the styling to apply to various ranges in the text.- Parameters:
attributedDescription- the JSON object of the attributed description- Returns:
- the parsed description, in HTML format, as a string
-
-