#!/usr/bin/env php formatActionComment(); timeout=0 cid=14886 - 测试纯文本处理 @Simple text - 测试HTML标签保留 @
This is a formatted text.
- 测试HTML代码转义 @Before<div>test</div>After - 测试空字符串处理 @0 - 测试另一个纯文本处理 @Line with newline */ $actionTest = new actionModelTest(); r($actionTest->formatActionCommentTest("Simple text")) && p() && e("Simple text"); // 测试纯文本处理 r($actionTest->formatActionCommentTest("This is a formatted text.
")) && p() && e("This is a formatted text.
"); // 测试HTML标签保留 r($actionTest->formatActionCommentTest('BeforeAfter')) && p() && e('Before<div>test</div>After'); // 测试HTML代码转义 r($actionTest->formatActionCommentTest("")) && p() && e("0"); // 测试空字符串处理 r($actionTest->formatActionCommentTest("Line with newline")) && p() && e("Line with newline"); // 测试另一个纯文本处理test