Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protects against invalid Quill links
The default behavior when parsing a link in Quill: 1. Check if link matches a list of valid protocols. 2. If not, change link text to `about:blank`. Kiln wraps the `Link.sanitize` function to prepend `http://` in front of any link missing a protocol. As a result we can end up with invalid links like this: ``` "http://one two three" ``` This commit preserves the convenience factor of not **requiring** end users to enter a protocol, but validates that the link produced is a valid URL. Invalid URLs will revert to `about:blank`. This commit also changes the default protocol to `https://` which is a reasonable expectation and more secure default.
- Loading branch information