Skip to content

Can safeDump output double quotes? #529

Closed
@krp312

Description

@krp312

Greetings,

Is it possible to convert the JS below to the YAML below?

JS:

{ apostrophes: "It's didn't there's" }

YAML:

apostrophes: "It's didn't there's"

In the YAML, I want to wrap the string in double quotes. The string will contain single quotes (apostrophes).

Thanks very much,
Kris

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