xmlEntity

This tag creates a XML entity. The parameters create a name and value.

Created by: hackvertor
Installed 1 times

Category: XML

Created on: Wednesday, October 30, 2024 at 11:03:57 AM

Updated on: Thursday, December 19, 2024 at 9:22:04 PM

This is a built in tag
Tag arguments
[
   {
      "type": "string",
      "help": "This is the entity name",
      "defaultValue": "name"
   },
   {
      "type": "string",
      "help": "This is the entity value",
      "defaultValue": "value"
   }
]
Code
class xmlEntity {
  encode(input, name, value) {
    return `<!DOCTYPE xml [
  <!ENTITY ${name} "${value}">
]>`;
  }
}