Improve HTML formatter

This commit is contained in:
aringenbach
2022-06-09 17:29:14 +02:00
committed by aringenbach
parent 0015993b8e
commit f8cd8fa96c
10 changed files with 230 additions and 271 deletions

View File

@@ -15,10 +15,15 @@
//
import Foundation
import UIKit
@available(iOS 14.0, *)
struct AnalyticsPromptStrings: AnalyticsPromptStringsProtocol {
let point1 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint1, withAllowedTags: ["b", "p"], fontSize: UIFont.systemFontSize)
let point2 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint2, withAllowedTags: ["b", "p"], fontSize: UIFont.systemFontSize)
let point1 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint1,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
let point2 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint2,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
}