yosssi/gold

Enhancement: Ability to decode as well as encode

kylewolfe opened this issue · 2 comments

I am currently working on a project and would love to add this functionality to it. However, I will be rolling out multiple ways in which you can edit (WYSIWYG) which means that I need to store the raw html and be able to convert that HTML back to gold format.

I'd be happy to fork and put some work in to this if it is a direction you want to go, however I do not have experience yet parsing HTML in Go, and I know the encoding/xml package may have issues with it.

Thoughts?

Thanks for your comment. So, you want to convert HTML source code to Gold format source code in Go? If so, I will think of the way for implementing this feature.

This package parses HTML source code and generates formatted HTML source code. I think the decoder you want could be implemented by using & extending this package. Continue to think of this feature.