This page demonstrates some quirks of raw HTML generated in ParserOutput, which gets saved to the parser cache and which we operate on in the ParserAfterTidy hook. Most other test cases are using the final HTML returned by ParserOutput::getText(), which we operate on in the OutputPageBeforeHTML hook.

Note:

- No "mw-parser-output" wrapper div
- Funky mw:editsection tags

Matma Rex (talk) 19:24, 24 February 2021 (UTC)(discussiontools-replybutton)

(discussiontools-topicsubscription-button-subscribe-label)

## Heading with a " quote Heading with a " quote

(discussiontools-topicheader-latestcomment: 1614194640)(discussiontools-topicheader-commentcount: 1)(discussiontools-topicheader-authorcount: 1)

Test. Matma Rex (talk) 19:24, 24 February 2021 (UTC)(discussiontools-replybutton)

    newestComment: {
    	"id": "c-Matma_Rex-2021-02-24T19:24:00.000Z-Heading_with_a_\"_quote",
    	"timestamp": "2021-02-24T19:24:00.000Z",
    	"author": "Matma Rex",
    	"heading": {
    		"headingLevel": 2,
    		"name": "h-Matma_Rex-2021-02-24T19:24:00.000Z",
    		"type": "heading",
    		"level": 0,
    		"id": "h-Heading_with_a_\"_quote-2021-02-24T19:24:00.000Z",
    		"replies": [
    			"c-Matma_Rex-2021-02-24T19:24:00.000Z-Heading_with_a_\"_quote"
    		],
    		"text": "Heading with a \" quote",
    		"linkableTitle": "Heading with a \" quote"
    	}
    }
    hasLedeContent
    hasCommentsInLedeContent
    {
    	"wgDiscussionToolsPageThreads": [
    		{
    			"headingLevel": null,
    			"name": "h-Matma_Rex-2021-02-24T19:24:00.000Z",
    			"type": "heading",
    			"level": 0,
    			"id": "h--2021-02-24T19:24:00.000Z",
    			"replies": [
    				{
    					"timestamp": "2021-02-24T19:24:00.000Z",
    					"author": "Matma Rex",
    					"type": "comment",
    					"level": 1,
    					"id": "c-Matma_Rex-2021-02-24T19:24:00.000Z",
    					"replies": []
    				}
    			]
    		},
    		{
    			"headingLevel": 2,
    			"name": "h-Matma_Rex-2021-02-24T19:24:00.000Z",
    			"type": "heading",
    			"level": 0,
    			"id": "h-Heading_with_a_\"_quote-2021-02-24T19:24:00.000Z",
    			"replies": [
    				{
    					"timestamp": "2021-02-24T19:24:00.000Z",
    					"author": "Matma Rex",
    					"type": "comment",
    					"level": 1,
    					"id": "c-Matma_Rex-2021-02-24T19:24:00.000Z-Heading_with_a_\"_quote",
    					"replies": []
    				}
    			]
    		}
    	]
    }