Fix hyperlink iOS still show full link

This commit is contained in:
dab246
2024-09-23 16:36:46 +07:00
committed by Dat H. Pham
parent f43fbf61ab
commit 2944778074
2 changed files with 4 additions and 2 deletions
@@ -18,7 +18,9 @@ class SanitizeHyperLinkTagInHtmlTransformer extends DomTransformer {
}) async {
final elements = document.querySelectorAll('a');
await Future.wait(elements.map((element) async {
_addToolTipWhenHoverLink(element);
if (useTooltip) {
_addToolTipWhenHoverLink(element);
}
_addBlankForTargetProperty(element);
_addNoReferrerForRelProperty(element);
}));
@@ -108,7 +108,7 @@ class TransformConfiguration {
const RemoveScriptTransformer(),
const BlockQuotedTransformer(),
const BlockCodeTransformer(),
SanitizeHyperLinkTagInHtmlTransformer(),
SanitizeHyperLinkTagInHtmlTransformer(useTooltip: PlatformInfo.isWeb),
const ImageTransformer(),
const AddLazyLoadingForBackgroundImageTransformer(),
const RemoveCollapsedSignatureButtonTransformer(),