Skip to content

Add explicit type="html" attribute to Atom <content> elements #274

@JEB-Bem

Description

@JEB-Bem

Check List

  • I have already read README.
  • I have already searched existing issues.
  • I have already searched existing pull requrests.

Feature Request

Currently, the Atom <content> element generated by hexo-generator-feed does not explicitly include a type attribute when the content contains HTML. According to RFC 4287 (Atom Syndication Format), the default value is type="text" when the attribute is omitted.

However, in practice the content often contains HTML markup, which should be explicitly declared as:

<content type="html">

Otherwise, some feed readers may interpret the content incorrectly or display escaped HTML as plain text(such as Thunderbird).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions