You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: packages/intl-messageformat/README.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,16 +187,11 @@ new IntlMessageFormat(
187
187
"raw '<b>HTML</b>' with '<a>'{placeholder}'</a>'"
188
188
).format({placeholder: 'some word'}); // "raw <b>HTML</b> with <a>some word</a>"
189
189
```
190
+
5. Embedded valid HTML tag is a bit of a grey area right now since we're not supporting the full HTML/XHTML/XML spec.
190
191
191
192
### `getAst` Method
192
193
193
-
Return the underlying AST for the compiled message
194
-
195
-
#### Caveats
196
-
197
-
- List of self-closing tags is defined [here](https://html.spec.whatwg.org/multipage/syntax.html#void-elements).
198
-
199
-
If you don't have `DOMParser` available in your environment (e.g. Node.js), you need to add a polyfill. One of the packages that provides such a polyfill is [jsdom](https://www.npmjs.com/package/jsdom).
194
+
Return the underlying AST for the compiled message.
0 commit comments