Limit the length of a string s to the 'max_string_length' in the config.
(s)
| 27 | pass |
| 28 | |
| 29 | def limit_string(s): |
| 30 | """ Limit the length of a string s to the 'max_string_length' in the config. """ |
| 31 | if len(s) > config.max_string_length: |
| 32 | return s[:config.max_string_length] + '...' |
| 33 | return s |
| 34 | |
| 35 | def html_escape(s): |
| 36 | """ Escape HTML characters in 's' for safe display in the graph. """ |