url-encoder
url-encoder copied to clipboard
Suggestion: Avoid Encoding Non-SVG Inputs
Suggestion
Currently, the tool encodes any input into a URL, assuming the input is always an SVG. However, there might be cases where users provides non-SVG inputs, leading to incorrect encoding.
Propesed Feature
- Implement a check to determine if input is a valid SVG.
- If the input is not an SVG, the tool should either:
- Return an error message indicating the input is not an SVG.
- Simply skip the encoding process and return the input as-is.