(value: string)
| 51 | * sequence. |
| 52 | */ |
| 53 | export function escapeCommentText(value: string): string { |
| 54 | return value.replace(COMMENT_DISALLOWED, (text) => |
| 55 | text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED), |
| 56 | ); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Retrieves next sibling node and makes sure that there is no |
no test coverage detected