-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Nested lists only works with invalid HTML #1279
Comments
@rkorebrits I think this is a duplicate of #1265, it was fixed in #1273. It was merged here |
EDIT - Looks like composer wasn't updated properly Apologies for duplicates! Composer.json: richard@ubuntu:/var/www/ditto$ composer update phpoffice/phpword
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files composer.json inside package:
Am I missing something? |
Some issue. $section = $phpWord->addSection([
have error: |
This is a bug report
Expected Behavior
In HTML when nesting lists, the nested
<ul>
needs to be inside, at the end of the parent<li>
node.Current Behavior
E.g.
Sample 26
uses invalid HTML to build HTML for the list.The error message that I receive:
How to Reproduce
To solve this for now, I've added a regex to extract the HTML to make it work:
Not sure if it's the best regex, but for our solution it works.
Context
The text was updated successfully, but these errors were encountered: