Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raw XML node content to list item on HTML import #497

Closed
SSchwaiger opened this issue Mar 15, 2015 · 0 comments
Closed

Add raw XML node content to list item on HTML import #497

SSchwaiger opened this issue Mar 15, 2015 · 0 comments

Comments

@SSchwaiger
Copy link

I'm import HTML generated by Froala, a WYSIWYG JavaScript editor. IT generates

tags in each

  • item. As a quickwin without having to parse all child tags (which is for sure a new add on as well to be able to format list items!), I just add the raw node content.

    PhpWord\Shared\Html.php line 329ff:

    if ($cNode->nodeName == '#text') {
    $text = $cNode->nodeValue;
    }
    else {
    $text = $cNode->textContent;
    }

  • Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Development

    No branches or pull requests

    1 participant