Topic: Source code
When viewing the page's source code via the browser, the following placeholders are shown. Should they be suppressed from outputting?
<!-- pun_alert -->
<!-- pun_announcement -->
<!-- pun_stats -->
<!-- pun_debug -->
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → Source code
When viewing the page's source code via the browser, the following placeholders are shown. Should they be suppressed from outputting?
<!-- pun_alert -->
<!-- pun_announcement -->
<!-- pun_stats -->
<!-- pun_debug -->
They certainly could be, but they need not be. Those are perfectly valid as HTML comments.
They were made comments for the reason that needlessly replacing them wouldn't be necessary anymore.
Exactly. To surpress them you would have to run str_replace 4 times to remove things that don't actually need removing. I also think it is quite a good idea to be able to see where the optional elements would output when viewing source.
PunBB Forums → PunBB 1.3 troubleshooting → Source code
Powered by PunBB, supported by Informer Technologies, Inc.