Skip to content

Commit d91221d

Browse files
committed
Fix documentation for outputTagAsString
Signed-off-by: Jack Cherng <[email protected]>
1 parent a7c3222 commit d91221d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ $rendererOptions = [
9191
'spacesToNbsp' => false,
9292
// HTML renderer tab width (negative = do not convert into spaces)
9393
'tabSize' => 4,
94+
// this option is currently only for the Json renderer.
9495
// internally, ops (tags) are all int type but this is not good for human reading.
9596
// set this to "true" to convert them into string form before outputting.
96-
'outputTagAsString' => true,
97+
'outputTagAsString' => false,
9798
// change this value to a string as the returned diff if the two input strings are identical
9899
'resultForIdenticals' => null,
99100
// extra HTML classes added to the DOM of the diff container

example/demo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
'spacesToNbsp' => false,
4949
// HTML renderer tab width (negative = do not convert into spaces)
5050
'tabSize' => 4,
51+
// this option is currently only for the Json renderer.
5152
// internally, ops (tags) are all int type but this is not good for human reading.
5253
// set this to "true" to convert them into string form before outputting.
5354
'outputTagAsString' => false,

src/Renderer/AbstractRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ abstract class AbstractRenderer implements RendererInterface
4848
// the frontend HTML could use CSS "white-space: pre;" to visualize consecutive whitespaces
4949
// but if you want to visualize them in the backend with "&nbsp;", you can set this to true
5050
'spacesToNbsp' => false,
51+
// this option is currently only for the Json renderer.
5152
// internally, ops (tags) are all int type but this is not good for human reading.
5253
// set this to "true" to convert them into string form before outputting.
5354
'outputTagAsString' => false,

0 commit comments

Comments
 (0)