mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Configuration Controller (#7857)
This commit is contained in:
@@ -620,3 +620,10 @@ GLOBAL_LIST_EMPTY(text_tag_cache)
|
||||
paper_text = replacetext(paper_text, "<br>", "\n")
|
||||
paper_text = strip_html_properly(paper_text) // Get rid of everything else entirely.
|
||||
return paper_text
|
||||
|
||||
//json decode that will return null on parse error instead of runtiming.
|
||||
/proc/safe_json_decode(data)
|
||||
try
|
||||
return json_decode(data)
|
||||
catch
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user