[formatter] add 'R' conversion - extract URLs (#8125)
This commit is contained in:
@@ -201,6 +201,12 @@ Conversion specifiers allow to *convert* the value to a different form or type.
|
||||
<td><code>{html!H}</code></td>
|
||||
<td><code>foo & bar</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><code>R</code></td>
|
||||
<td>Extract URLs</td>
|
||||
<td><code>{lorem!R}</code></td>
|
||||
<td><code>["https://example.org/"]</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><code>s</code></td>
|
||||
<td>Convert value to <a href="https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str" rel="nofollow"><code>str</code></a></td>
|
||||
|
||||
Reference in New Issue
Block a user