Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -257,7 +257,7 @@ |
258 | 258 | /** |
259 | 259 | * Set whether the output should only contain the body of the article, |
260 | 260 | * without any skin, sidebar, etc. |
261 | | - * Used e.g. when calling with "action=raw". |
| 261 | + * Used e.g. when calling with "action=render". |
262 | 262 | * |
263 | 263 | * @param $only Boolean: whether to output only the body of the article |
264 | 264 | */ |
— | — | @@ -451,10 +451,10 @@ |
452 | 452 | } |
453 | 453 | |
454 | 454 | /** |
455 | | - * "Page title" means the contents of <h1>. It is stored as a valid HTML fragment. |
456 | | - * This function allows good tags like <sup> in the <h1> tag, but not bad tags like <script>. |
457 | | - * This function automatically sets <title> to the same content as <h1> but with all tags removed. |
458 | | - * Bad tags that were escaped in <h1> will still be escaped in <title>, and good tags like <i> will be dropped entirely. |
| 455 | + * "Page title" means the contents of \<h1\>. It is stored as a valid HTML fragment. |
| 456 | + * This function allows good tags like \<sup\> in the \<h1\> tag, but not bad tags like \<script\>. |
| 457 | + * This function automatically sets \<title\> to the same content as \<h1\> but with all tags removed. |
| 458 | + * Bad tags that were escaped in \<h1\> will still be escaped in \<title\>, and good tags like \<i\> will be dropped entirely. |
459 | 459 | */ |
460 | 460 | public function setPageTitle( $name ) { |
461 | 461 | # change "<script>foo&bar</script>" to "<script>foo&bar</script>" |