Fix hyperlink iOS still show full link
This commit is contained in:
+3
-1
@@ -18,7 +18,9 @@ class SanitizeHyperLinkTagInHtmlTransformer extends DomTransformer {
|
|||||||
}) async {
|
}) async {
|
||||||
final elements = document.querySelectorAll('a');
|
final elements = document.querySelectorAll('a');
|
||||||
await Future.wait(elements.map((element) async {
|
await Future.wait(elements.map((element) async {
|
||||||
_addToolTipWhenHoverLink(element);
|
if (useTooltip) {
|
||||||
|
_addToolTipWhenHoverLink(element);
|
||||||
|
}
|
||||||
_addBlankForTargetProperty(element);
|
_addBlankForTargetProperty(element);
|
||||||
_addNoReferrerForRelProperty(element);
|
_addNoReferrerForRelProperty(element);
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class TransformConfiguration {
|
|||||||
const RemoveScriptTransformer(),
|
const RemoveScriptTransformer(),
|
||||||
const BlockQuotedTransformer(),
|
const BlockQuotedTransformer(),
|
||||||
const BlockCodeTransformer(),
|
const BlockCodeTransformer(),
|
||||||
SanitizeHyperLinkTagInHtmlTransformer(),
|
SanitizeHyperLinkTagInHtmlTransformer(useTooltip: PlatformInfo.isWeb),
|
||||||
const ImageTransformer(),
|
const ImageTransformer(),
|
||||||
const AddLazyLoadingForBackgroundImageTransformer(),
|
const AddLazyLoadingForBackgroundImageTransformer(),
|
||||||
const RemoveCollapsedSignatureButtonTransformer(),
|
const RemoveCollapsedSignatureButtonTransformer(),
|
||||||
|
|||||||
Reference in New Issue
Block a user