Changeset View
Changeset View
Standalone View
Standalone View
src/lib/text/ktexttohtml.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 39 | { | |||
---|---|---|---|---|---|
55 | * Don't parse and replace any URLs. | 55 | * Don't parse and replace any URLs. | ||
56 | */ | 56 | */ | ||
57 | IgnoreUrls = 1 << 3, | 57 | IgnoreUrls = 1 << 3, | ||
58 | 58 | | |||
59 | /** | 59 | /** | ||
60 | * Interpret text highlighting markup, like *bold*, _underline_ and /italic/, | 60 | * Interpret text highlighting markup, like *bold*, _underline_ and /italic/, | ||
61 | * and wrap them in corresponding HTML entities. | 61 | * and wrap them in corresponding HTML entities. | ||
62 | */ | 62 | */ | ||
63 | HighlightText = 1 << 4 | 63 | HighlightText = 1 << 4, | ||
64 | | ||||
65 | /** | ||||
66 | * Replace phone numbers with tel: links. | ||||
aacid: @since missing | |||||
67 | * @since 5.55.0 | ||||
68 | */ | ||||
69 | ConvertPhoneNumbers = 1 << 5 | ||||
64 | }; | 70 | }; | ||
65 | Q_DECLARE_FLAGS(Options, Option) | 71 | Q_DECLARE_FLAGS(Options, Option) | ||
66 | 72 | | |||
67 | /** | 73 | /** | ||
68 | * Converts plaintext into html. The following characters are converted | 74 | * Converts plaintext into html. The following characters are converted | ||
69 | * to HTML entities: & " < >. Newlines are also preserved. | 75 | * to HTML entities: & " < >. Newlines are also preserved. | ||
70 | * | 76 | * | ||
71 | * @param plainText The text to be converted into HTML. | 77 | * @param plainText The text to be converted into HTML. | ||
Show All 24 Lines |
@since missing