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

hi.. im finding some issue in divs #11

Open
pallavi1811 opened this issue Feb 15, 2013 · 4 comments
Open

hi.. im finding some issue in divs #11

pallavi1811 opened this issue Feb 15, 2013 · 4 comments

Comments

@pallavi1811
Copy link

i want to convert a HTML, which has a parent div, inside it 3 different divs. but when i insert 2 divs it will convert, when 3rd div is inserted it sayd enter a valid json. I am not able to figure out why it is happening. Please help

@bernardladenthin
Copy link

Hello, can you paste the HTML? Kind regards

@bernardladenthin
Copy link

Hello, github is rendering (embed) your HTML. Please use a raw paste tool like https://gist.github.com/ or http://pastebin.com/ and paste the link here. Thank you.

@pallavi1811
Copy link
Author

@bernardladenthin
Copy link

Hello,

I think everything works well.
https://gist.github.com/bernardladenthin/ab513c21911c7e1fd626

The first step is to create a valid HTML. The http://json.fastfrag.org/ works fine for me. The only think you should avoide is a clean div container like

<div></div>

Because the div has no content and no attributes, it wouldn't be converted.

Please remeber: If you use a special indent in your source HTML it would be converted to something like

\r\n\t\t\t\t\t

please remove this from a json object.

Kind regards

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

No branches or pull requests

2 participants