Skip to content

Allow escaping placeholders #1144

@ManInMyVan

Description

@ManInMyVan

Confirmation

  • I checked the Issues and Pull request tab for any existing issues or PRs.
  • My Feature Request is for PlaceholderAPI and not any expansion or other plugin.

Type

New API feature, Minor Code improvement (Won't affect Servers)

Description

I propose allowing placeholders to be escaped, ie "\%my_placeholder%" would parse as "%my_placeholder%". An accompanying API method to escape all placeholders in a given string should also be added (such that parse(escape(string)).equals(string)) This feature would be useful for input sanitization, which is especially important if placeholders that take take a long time to parse exist, such as arbitrarily large exponent calculations in the math extension.

Code Example

Jar file

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions