replaceContent()

From Hack Wars Wiki

Jump to: navigation, search


Function information for replaceContent()
Function replaceContent(string key, string content)
API HTTP
Cost $250
Level 30
CPU Usage 1
Description This function will replace a string in the hard-coded HTML of your website (in the form of <?keyname?>) with the content given.

Example

Somewhere in the code within your Site Editor, you have this:

<?maincontent?>

In the Enter section of your HTTP script, the following code will cause "Hello World!" to appear in place of "<?maincontent?>"

replaceContent("maincontent", "Hello World!");
Personal tools