alexandresalome / graphviz

PHP Graphviz library
https://alexandresalome.github.io/graphviz/
MIT License
73 stars 20 forks source link

WIP Support for HTML labels #7

Closed clemens-tolboom closed 8 years ago

clemens-tolboom commented 10 years ago

There currently is no support for HTML table labels http://graphviz.org/content/node-shapes#html

I was curious for this support so wrote these small failing tests.

Note I come from https://github.com/clue/graph-uml and https://github.com/clue/graph of which the latter has a graphviz rendering. The latter is about to split off graphviz into it's own project so maybe we can team-up ... not sure.

Feel free to close or fix for the tests :-)

clemens-tolboom commented 10 years ago

@alexandresalome is it worth adding support for this? I'm not sure I find the time for the fix due to related projects :-(

Anyway feedback is welcome :)

alexandresalome commented 10 years ago

We might introduce a BC break here to make it clear (about escaping or not):

alexandresalome commented 8 years ago

Fixed in master. You can now disable escaping to get your table rendered.

I added an example here: https://github.com/alexandresalome/graphviz/blob/master/samples/02-table.php

I'll be releasing soon, probably next week. Before 1.1 is released, you can use dev-master

clemens-tolboom commented 8 years ago

Guess you haven't added the tests from this PR :-(

alexandresalome commented 8 years ago

@clemens-tolboom I added tests for unescaping feature