Don't send HTML on post save.

fixes #3956
- adjusts post serialiser to not send HTML content
perfect reasoning from the sebgie


On Thu, Sep 4, 2014 at 10:31 AM, Sebastian Gierlinger <
notifications@github.com> wrote:

> In core/client/serializers/post.js:
>
> > @@ -54,6 +54,8 @@ var PostSerializer = ApplicationSerializer.extend(DS.EmbeddedRecordsMixin, {
> >
> >          // Don't ever pass uuid's
> >          delete data.uuid;
> > +        // Don't send HTML
> > +        data.html = '';
>
> my 2c: delete, because html:'' implies an empty, but valid property that
> could be used to overwrite the stored value.
>
> When it comes to validation I think that it would make sense to require
> markdown OR html. With that in mind we could also talk about the benefits
> of changing the object to use data:'your content' and type:'markdown' at
> some point in the future.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TryGhost/Ghost/pull/3957/files#r17125237>.
>