Skip to content

linebreak #384

@alimo2

Description

@alimo2

Hi,

How can i put long text with many line break in phpword?
is it possible to use str_replace function to replace " \r\n " with any meaningful xml tag?

//$text is long text with many linebreaks
$text = str_replace("\r\n",'<w:br/>',$text);
$section->addText($text);

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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