Skip to content

select options will not escape apostrophes #575

Closed
@avaramis

Description

@avaramis

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.4.1

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.7.7
	Operating system: Windows 11 Pro 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 3
	Restricted mode: off
	Plugins installed: 16
	Plugins enabled: 16
		1: Natural Language Dates v0.6.1
		2: Tasks v4.9.0
		3: Templater v1.16.4
		4: QuickAdd v1.6.1
		5: Nifty Links v1.4.0
		6: Rich Links v1.2.0
		7: Multi-Column Markdown v0.9.1
		8: Markmind v3.0.8
		9: Kanban v1.5.3
		10: Jelly Snippets v0.2.0
		11: Hotkeys++ v0.2.7
		12: Hotkeys for templates v1.4.3
		13: Excalidraw v1.9.23
		14: Dataview v0.5.64
		15: Advanced Tables v0.19.1
		16: Meta Bind v1.4.1

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

Using the input field select I can't define options that contain apostrophes in them no matter how I try to escape them

Steps to Reproduce

With the following I get an error from the apostrophe in the first option and nothing that I have tried works

INPUT[inlineSelect(
option(Don't Forget),    
option(Nevermind)
):stuckpoints

What I have tried:

  1. option(Don't Forget), //errors out
  2. option("Don't Forget"), //errors out
  3. option("Don't Forget"), //errors out
  4. option(Don' Forget), //renders ' instead of '
  5. option(Don't Forget), //renders ' instead of '
  6. option(Don\u0027t Forget), //renders \u0027 instead of '
  7. option(Don%27t Forget), //renders %27 instead of '

Expected Behavior

I expect the option to for Don't forget to render as Don't forget and not throw an error or render the literal output of an entity or url or utf encoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions