Skip to content

Commit a9ac138

Browse files
committed
Migration Aid
Provide a means for potentially affected users to test if new logic is in effect so that they can update code beforehand.
1 parent 989a4ce commit a9ac138

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/PhpSpreadsheet/Writer/Html.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ class Html extends BaseWriter
3535

3636
private const DEFAULT_CELL_WIDTH_PIXELS = 56;
3737

38+
/**
39+
* Migration aid to tell if html tags will be treated as plaintext in comments.
40+
* if (
41+
* defined(
42+
* \PhpOffice\PhpSpreadsheet\Writer\Html::class
43+
* . '::COMMENT_HTML_TAGS_PLAINTEXT'
44+
* )
45+
* ) {
46+
* new logic with styling in TextRun elements
47+
* } else {
48+
* old logic with styling via Html tags
49+
* }.
50+
*/
51+
public const COMMENT_HTML_TAGS_PLAINTEXT = true;
52+
3853
/**
3954
* Spreadsheet object.
4055
*/

0 commit comments

Comments
 (0)