--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Max.
It looks like your html string is broken over new lines, which is what's causing problems for the shell. The same would need to be done if you were trying to insert a hardcoded html string via the driver rather than reading it from a file where the new lines would be escaped.
If you're set on doing this via the shell rather than via a driver like Francesca suggested, you'll have to try build up the String over new lines like below before entering the string in to the shell.
db.test.insert({
x:"<div id='product-description'><p>Who hasn't wished for a mini-R.... " +
"<p> <strong>Colors: </strong> White, Red, Orange and Blue <br> " +
" Runs on a single AA battery." +
" </p> <p>1575 yen</p> <!-- end #product-description --></div> "
})
I don't believe that there would be any way to read in a file within the shell as the ability to do so isn't a part of the javascript engine.
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/vw00sM1v5o4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
Hi Max.
[ ... ]
I don't believe that there would be any way to read in a file within the shell as the ability to do so isn't a part of the javascript engine.
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/vw00sM1v5o4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.