Skip to content

PHP multiline strings fail #1233

@wandras

Description

@wandras

PHP allows multiline strings.
That means including newlines and carriage returns into single quote or double quote delimited strings will not break them.

Example:

<?php
$test = "This multiline string should
not break";

$msg = 'Happy coding to everybody,
welcome to the Prism.js project!';
?>

In Prism.js multiline strings break, either delimited with single or double quotes:
Demo on jsfiddle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions