Migration Aid

Provide a means for potentially affected users to test if new logic is in effect so that they can update code beforehand.
This commit is contained in:
oleibman
2024-03-21 08:53:13 -07:00
parent 989a4cec54
commit a9ac138300
+15
View File
@@ -35,6 +35,21 @@ class Html extends BaseWriter
private const DEFAULT_CELL_WIDTH_PIXELS = 56;
/**
* Migration aid to tell if html tags will be treated as plaintext in comments.
* if (
* defined(
* \PhpOffice\PhpSpreadsheet\Writer\Html::class
* . '::COMMENT_HTML_TAGS_PLAINTEXT'
* )
* ) {
* new logic with styling in TextRun elements
* } else {
* old logic with styling via Html tags
* }.
*/
public const COMMENT_HTML_TAGS_PLAINTEXT = true;
/**
* Spreadsheet object.
*/