Skip to content

CreateItem fails if Subject contains '&' #358

Open
@bladerunner2020

Description

@bladerunner2020

Encountered an error "An error occurred while parsing EntityName.."
Found out that CreateItem fails if Subject contains '&'.

Obviously the reason is that XML are not allowed to contain 5 special characters (&, <, >, ", ').
This could be easily fixed by replacing with &...

Besides Subject there are other places where special characters should be replaced. At least in body text.
I added processing Subject and body text to my code, but I guess would it be better to add to ews-javascript-api?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions