Created
October 25, 2018 22:12
-
-
Save greatislander/1afdbcc0bda88085cea1f896c49584a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="border-collapse: collapse; width: 100%; height: 3em;" border="1"> | |
<tbody> | |
<tr style="height: 1.5em;"> | |
<td style="width: 25%; height: 1.5em;">One</td> | |
<td style="width: 25%; height: 1.5em;">Two</td> | |
<td style="width: 25%; height: 1.5em;">Three</td> | |
<td style="width: 25%; height: 1.5em;">Four</td> | |
</tr> | |
<tr style="height: 1.5em;"> | |
<td style="width: 25%; height: 1.5em;">One</td> | |
<td style="width: 25%; height: 1.5em;">Two</td> | |
<td style="width: 25%; height: 1.5em;">Three</td> | |
<td style="width: 25%; height: 1.5em;">Four</td> | |
</tr> | |
</tbody> | |
</table> | |
This table has <code>border='1'</code> but <code>\Pressbooks\Sanitize\sanitize_webbook_content()</code> should remove it. | |
[media src="https://www.youtube.com/watch?v=JgIhGTpKTwM"][/media] | |
The <code>[media]</code> shortcode handler applies <code>the_content</code> with the <code>\Pressbooks\Sanitize\sanitize_webbook_content()</code> filter removed, but only in the scope of that function, so it still works in the rest of the chapter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment