[YouTube] Fix escaping links in YouTubeParsingHelper.getTextFromObject
This commit is contained in:
parent
45636b0d00
commit
56aab4d971
|
@ -937,6 +937,7 @@ public final class YoutubeParsingHelper {
|
||||||
String text = run.getString("text");
|
String text = run.getString("text");
|
||||||
|
|
||||||
if (html) {
|
if (html) {
|
||||||
|
text = Entities.escape(text);
|
||||||
if (run.has("navigationEndpoint")) {
|
if (run.has("navigationEndpoint")) {
|
||||||
final String url = getUrlFromNavigationEndpoint(run
|
final String url = getUrlFromNavigationEndpoint(run
|
||||||
.getObject("navigationEndpoint"));
|
.getObject("navigationEndpoint"));
|
||||||
|
@ -962,7 +963,7 @@ public final class YoutubeParsingHelper {
|
||||||
textBuilder.append("<s>");
|
textBuilder.append("<s>");
|
||||||
}
|
}
|
||||||
|
|
||||||
textBuilder.append(Entities.escape(text));
|
textBuilder.append(text);
|
||||||
|
|
||||||
if (strikethrough) {
|
if (strikethrough) {
|
||||||
textBuilder.append("</s>");
|
textBuilder.append("</s>");
|
||||||
|
|
Loading…
Reference in New Issue