Skip to content

Instantly share code, notes, and snippets.

@greatislander
Created October 25, 2018 22:12
Show Gist options
  • Save greatislander/1afdbcc0bda88085cea1f896c49584a9 to your computer and use it in GitHub Desktop.
Save greatislander/1afdbcc0bda88085cea1f896c49584a9 to your computer and use it in GitHub Desktop.
<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>&#x5B;media&#x5D;</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