- <?=$!variablename?> will output the variable "variablename" but not HTML-escaped
- <?=s,$!variablename,My %s text?> will insert the variable "variablename" into the translated text but not HTML-escaped
-- <?=s,"some data",My %s text?> will insert "some data" into the translated text literally (not HTML-escaped)
+- <?=s,"some data",My %s text?> will insert "some data" into the translated text
+- <?=s,!"some data",My %s text?> will insert "some data" into the translated text literally (not HTML-escaped)
- <? if($variable) { ?>
Output/execute the text until "<? } ?>" only if $variable not null or Boolean.FALSE.
String var = myvars[j - 1];
if (var.startsWith("$!")) {
Template.outputVar(out, l, vars, myvars[j - 1].substring(2), true);
+ } else if (var.startsWith("!\"")) {
+ out.print(var.substring(2));
} else if (var.startsWith("\"")) {
- out.print(var.substring(1));
+ out.print(HTMLEncoder.encodeHTML(var.substring(1)));
} else {
Template.outputVar(out, l, vars, myvars[j - 1].substring(1), false);
}
} else if (s2.startsWith("=s,")) {
String command = s2.substring(3);
final LinkedList<String> store = new LinkedList<String>();
- while (command.startsWith("$") || command.startsWith("\"")) {
+ while (command.startsWith("$") || command.startsWith("\"") || command.startsWith("!\"")) {
int idx;
- if (command.startsWith("\"")) {
- idx = command.indexOf("\"", 1) + 1;
+ if (command.startsWith("\"") || command.startsWith("!\"")) {
+ idx = command.indexOf("\"", command.charAt(0) == '!' ? 2 : 1) + 1;
store.add(command.substring(0, idx - 1));
} else {
idx = command.indexOf(",");
<p><?=_In the meanwhile you would need to close this gap with face to face assurances with CAcert Assurers. Think not only travelling to populated countries, but also remember that assurers may occasionally visit your country or area.?></p>
-<p><?=s,"<a href='//wiki.cacert.org/TTP/TTPuser'>https://wiki.cacert.org/TTP/TTPuser</a>","<a href='//wiki.cacert.org/TTP/TTPAL'>https://wiki.cacert.org/TTP/TTPAL</a>",If you are interested in the TTP programme, read the pages %s for the basic way how the TTP programme works for you, and %s whether the TTP programme affects the country where you are located.?> </p>
+<p><?=s,!"<a href='//wiki.cacert.org/TTP/TTPuser'>https://wiki.cacert.org/TTP/TTPuser</a>",!"<a href='//wiki.cacert.org/TTP/TTPAL'>https://wiki.cacert.org/TTP/TTPAL</a>",If you are interested in the TTP programme, read the pages %s for the basic way how the TTP programme works for you, and %s whether the TTP programme affects the country where you are located.?> </p>
<? if($ttp) { ?>
<p><?=_If you want to ask for TTP assurances fill out the missing data and send the request to support@cacert.org to start the process. CAcert will then inform you about the next steps.?></p>