don't remove self from example code in the HTML output (closes #13223)

Patch by Víctor Terrón.
4 files changed