This program detects, is a character at a given index in a given string being a closing of an attribute. In healthy code, that's normally a double quotes character.
This program is aimed at fixing seriously broken HTML code — missing closing quotes, mismatching closing quotes, swapped quotes and unencoded "content" quotes as a part of attribute's value.
For healthy HTML code, however, finding the closing double quotes is a trivial task.
The main function
isAttrClosing() is imported like this:
It's a function which takes three input arguments:
|Input argument||Key value's type||Obligatory?||Description|
|String||yes||The input string of zero or more characters|
|Natural number or zero||yes||Index of an opening quote of an attribute|
|Natural number||yes||Index we ask this program to evaluate, is it a closing quote|
The function returns a boolean.
If anything is wrong with the input arguments, the program returns false. It never throws.
You can import