File tree 1 file changed +25
-0
lines changed 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -220,3 +220,28 @@ Rendered as React this could become:
220
220
_ What other solutions are available?_
221
221
_ How do they compare against the requirements?_
222
222
_ What other properties they have?_
223
+
224
+ ### Do Nothing
225
+
226
+ We could not provide any special support for spans and markup elements,
227
+ and instead delegate the problem completely to tools and downstream processing layers.
228
+
229
+ ```
230
+ This is <html:strong>bold</html:strong> and this is <html:img alt="an image">.
231
+ ```
232
+
233
+ #### Pros:
234
+
235
+ * No work required from us right now.
236
+ * It's HTML.
237
+ * The least surprising syntax for developers and translators.
238
+ * Some CAT tools already support HTML in translations.
239
+
240
+ #### Cons:
241
+
242
+ * Requires quoting in XML-based containers.
243
+ * Relies on a best-effort convention; is not a standard.
244
+ * Markup becomes a completely alient concept in MessageFormat:
245
+ * It cannot be validated via the AST nor the reigstry.
246
+ * It cannot be protected, unless put inside literal expressions.
247
+ * It is not supported by ` formatToParts ` , which in turn makes double-parsing difficult.
You can’t perform that action at this time.
0 commit comments